{% extends "admin/base_site.html" %}


{% block breadcrumbs %}
    <ul class="breadcrumb">
        <li>
            <a href="{% url 'admin:index' %}">Home</a>
            <span class="divider">»</span>
        </li>
        <li>
            <a href="{% url 'rq_home' %}">Django RQ</a>
            <span class="divider">»</span>
        </li>
        <li>
            <a href="{% url 'rq_jobs' queue_index %}">{{ queue.name }}</a>
            <span class="divider">»</span>
        </li>
        <li class="active">{{ action|capfirst }}</li>
    </ul>
{% endblock %}

{% block content_title %}<h1>Are you sure?</h1>{% endblock %}

{% block content %}

<div id="content-main">
    <p>
        Are you sure you want to <b>{{ action|capfirst }}</b> the selected jobs from <a href="{% url 'rq_jobs' queue_index %}" target="_blank">{{ queue.name }}</a>? These jobs are selected:
    </p>
    <ul>
    {% for job_id in job_ids %}
        <li><a href="{% url 'rq_job_detail' queue_index job_id %}" target="_blank">{{ job_id }}</a></li>
    {% endfor %}
    </ul>
    <form action="" method="post">
        {% csrf_token %}
        <div>
            {% for job_id in job_ids %}
                <input type="hidden" name="job_ids" value="{{ job_id }}">
            {% endfor %}
            <input type="hidden" name="action" value="{{ action }}" />
            <input class="btn btn-primary" type="submit" value="Yes, I'm sure" />
        </div>
    </form>
</div>

{% endblock %}
